package cn.njxzc.examples;

class Datel {
	int year, month, day;

	void setDate(int i, int j, int k) {
		year = i;
		month = j;
		day = k;
	}

	void printDate() {
		System.out.println("year=" + year + ",month=" + month + ",day" + day);
	}

}

public class Exam3_10 {
	String name = new String();
	Datel birthday = new Datel();

	void setExam3_10(String s, int i, int j, int k) {
		name = s;
		birthday.setDate(i, j, k);
	}

	void printExam3_10() {
		System.out.println("name=" + name + "＼t");
		birthday.printDate();
	}

	public static void main(String[] args) {
		Exam3_10 p = new Exam3_10();
		p.setExam3_10("zhang ping", 1973, 10, 28);
		p.printExam3_10();

	}

}
